<template>
    <div class="userOrderMsg view-body">
      <h1>用户个人信息</h1>
    </div>
</template>

<script>
  import axios from 'axios'
  import {getStorage} from "../../../../common/js/localStorage";
  import global from '../../../global'
  export default {
      name: "userOrderMsg",
      created(){
        this._getUserMsg()
      },
      methods:{
        //获取用户信息
        _getUserMsg(){
          let orderId = this.$route.query.orderId
          axios.get('http://'+global.$host+'/loanApply/loanUserInfo?orderId='+orderId,
            {
              headers: {
                'Authorization': getStorage('token')
              }
            }
          )
            .then(res => {
              if(res.status===global.ERR_OK){
                if(res.data.status===global.CUSTOM_ERR_OK){
                  let data = res.data.data
                  console.log(res)
                }
              }else {
                return
              }
            })
            .catch(e => {
              console.log(e)
            })
        }
      }
    }
</script>

<style scoped>

</style>
